package com.agile.springboot.service;

import com.agile.springboot.entity.Group;
import com.agile.springboot.entity.User;

import java.util.Date;
import java.util.List;

public interface GroupService {

    int addGroup(Group group);

    int delGroup(String group_id);

    int pscDelGroup(String group_id);

    int updateGroup(Group group);

    List<Group> fuzzySearchGroupByName(String group_name);

    Group exactSearchGroupByName(String group_name);

    Group searchGroupById(String group_id);

    List<Group> queryGroupsCreatedByUser(String user_id);

    List<Group> queryGroupsBelongToAnswerer(String user_id);

    int addAnswererToGroup(String group_id, String answerer_id);

    int deleteAnswerersFromGroup(String group_id, String answerer_id);

    List<String> getUsersIdInGroup(String group_id);

    Date getUserJoinTime(String group_id, String member_id);

    List<User> getUsersIdNotInGroup(String group_id);
}
